<template>
  <el-table :data="tableData" border :height="600">
    <el-table-column
      :label="'一级类目'"
      align="center"
      prop="firstLevelColumn"
    />
    <el-table-column
      width="140"
      :label="'二级类目'"
      align="center"
      prop="secondLevelColumn"
    />
    <el-table-column
      width="140"
      :label="'三级类目'"
      align="center"
      prop="threeLevelColumn"
    />
    <el-table-column label="产品季节" align="center" prop="productSeason" />
    <el-table-column label="产品款号" align="center" prop="item" />
    <el-table-column label="sku" align="center" prop="sku" />
    <el-table-column label="入仓时间" align="center" prop="dataDate">
      <template slot-scope="scope">
        <span>{{ parseTime(scope.row.dataDate, "{y}-{m}-{d}") }}</span>
      </template>
    </el-table-column>
    <el-table-column label="库龄天数" align="center" prop="inventoryAgeDays" />
    <el-table-column
      label="归属库龄段"
      align="center"
      prop="inventoryAgeDateRange"
    />
    <el-table-column label="库存量" align="center" prop="inventoryQuantity" />
    <el-table-column label="库存金额" align="center" prop="inventoryAmount" />
  </el-table>
</template>
<script>
export default {
  props: {
    tableData: {
      type: Array,
      default: () => [],
    },
  },
};
</script>